package com.gipson.amc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gipson.amc.entity.Authority;
import com.gipson.amc.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 权限 Mapper 接口
 * </p>
 *
 * @author xsyuan
 * @since 2020-03-27
 */
public interface AuthorityMapper extends BaseMapper<Authority> {

    List<Authority> listByRoleId(@Param("roleId") String roleId);

    List<Authority> getAllMenuByUsername(@Param("username") String username,@Param("applicationId")String applicationId);

    List<Authority> getAllMenu(@Param("mapParam")Map<Object, Object> map);

}
